home *** CD-ROM | disk | FTP | other *** search
- property horizPos
-
- on new me
- set the horizPos of me to 200
- set the locH of sprite 2 to the horizPos of me
- set the locV of sprite 2 to 120
- return me
- end
-
- on moveBall me, direction
- set the horizPos of me to (direction * 50) + the horizPos of me
- set stageWidth to the stageRight - the stageLeft
- if the horizPos of me > (stageWidth + 99) then
- set the horizPos of me to 0
- end if
- if the horizPos of me < -99 then
- set the horizPos of me to stageWidth
- end if
- set the locH of sprite 2 to horizPos
- end
-